<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<ui:composition>
	<p:graphicImage url="resources/images/irri_logo.png"
		style="float: left;" />
	<p:graphicImage url="resources/images/smta_logo.png"
		style="float: right;" />
	<h:form>
		<p:growl id="messages" showDetail="true" sticky="false" />

		<p:menubar style="position: absolute; bottom: 0; width: 99%">
			<p:menuitem value="Home" url="smtareporthome.jsf" icon="ui-icon-home" />

			<c:if test="${globalBean.canCreate() or globalBean.canUpdate()}">
				<p:submenu label="Maintenance" icon="ui-icon-folder-open">
					<p:menuitem value="Upload Template" url="templateupload.jsf"
						icon="ui-icon-arrowreturnthick-1-n" />
					<p:menuitem value="Generate SMTA" url="generator.jsf"
						icon="ui-icon-document" />
					<p:separator />
					<p:menuitem value="Report SMTAs" url="reporter.jsf"
						icon="ui-icon-signal-diag" />
					<p:separator />
					<p:menuitem value="Report Log" url="reportlog.jsf"
						icon="ui-icon-note" />
					<c:if
						test="${globalBean.canCreate() and globalBean.canUpdate() and globalBean.canDelete()}">
						<p:menuitem value="Delete Report Logs" url="deletereportlog.jsf"
							icon="ui-icon-trash" />
						<p:separator />
						<p:menuitem value="Users" url="useradmin.jsf"
							icon="ui-icon-person" />
					</c:if>
				</p:submenu>
			</c:if>

			<p:menuitem value="Logout" url="login.jsf" icon="ui-icon-close" />
		</p:menubar>
	</h:form>
</ui:composition>

</html>
